package net.bblot.lottery.api.request;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;

import net.bblot.lottery.PackegeConfig;
import net.bblot.lottery.api.ApiResponseListener;
import net.bblot.lottery.api.task.HttpTask;

import android.content.Context;
import android.os.Handler;

public class GetAds {
	public static HttpTask getads(Context context, ApiResponseListener listener) {
		String url = PackegeConfig.Base_url + "/api?m=system.AppInfo.getSplashPic";
		List<NameValuePair> queryParams = new ArrayList<NameValuePair>();
		final Handler handler = HttpTask.getHttpHandler(listener);
		return HttpTask.getTask(handler, context, url, HttpTask.HTTP_REQEST_TYPE_GET, queryParams, null, null, null);

	}

	public static class Result {
		public ArrayList<Image> imagearray;

		public static class Image {
			private String link_url;
			private String pic_url;
			private long pic_time;
			public String getLink_url() {
				return link_url;
			}
			public void setLink_url(String link_url) {
				this.link_url = link_url;
			}
			public String getPic_url() {
				return pic_url;
			}
			public void setPic_url(String pic_url) {
				this.pic_url = pic_url;
			}
			public long getPic_time() {
				return pic_time;
			}
			public void setPic_time(long pic_time) {
				this.pic_time = pic_time;
			}

			
		}

	}
}
